<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>sample.html</title>

		<meta http-equiv="content-type" content="text/html; charset=UTF-8">


		<link rel="stylesheet" type="text/css"
			href="js/ext/resources/css/ext-all.css">
		<script type="text/javascript" src="js/ext/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="js/ext/ext-all.js"></script>

	</head>
	<script type="text/javascript">
function a(){
	alert('some thing');
}
Ext.onReady(function(){
	// ExtJS 支持事件队列，addLinster 方法的另外一个简写形式是on。
	Ext.get("btnAlert").on("click",a);
	Ext.get("btnAlert").on("click",a);
});
</script>
	<body>

		<input id="btnAlert" type="button" value="alert框" />
	</body>
</html>
